package com.authentication.center.model;

import javax.persistence.*;
import lombok.Data;

/**
 * @author garvin
 * @date 2020-05-21
 */
@Data
@Table(name = "t_resource_role")
public class ResourceRole {
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 资源ID
     */
    @Column(name = "resource_id")
    private Long resourceId;

    /**
     * 角色ID
     */
    @Column(name = "role_id")
    private Long roleId;

    public static final String ID = "id";

    public static final String DB_ID = "id";

    public static final String RESOURCE_ID = "resourceId";

    public static final String DB_RESOURCE_ID = "resource_id";

    public static final String ROLE_ID = "roleId";

    public static final String DB_ROLE_ID = "role_id";
}